package com.globalwave.common.service;

import java.util.Map;

import com.globalwave.common.ArrayOrderList;
import com.globalwave.common.ArrayPageList;
import com.globalwave.common.entity.VirtualEditForm;
import com.globalwave.common.entity.VirtualGrid;
import com.globalwave.system.entity.SessionUser;

public interface VirtualModuleService {

    public VirtualGrid getUIMetaData(Long viewId, String viewCode) throws Exception ;
    public VirtualEditForm getEditFormMetaData(String viewCode) throws Exception ;
    
    public ArrayPageList<Map<String, Object>> query(
    		Map<String, String[]> criterion, 
            int pageIndex, 
            int pageSize,
            ArrayOrderList orderList,
            Long view_id,
            String view_code, 
            SessionUser user) 
    throws Exception ;
    
    
    public Map<String, String[]> create(Map<String, String[]> entity, Long viewId, SessionUser user) throws Exception ;
    public void update(Map<String, String[]> entity, Long viewId, SessionUser user) throws Exception ;
    public void delete(Map<String, String[]> entity, SessionUser user) throws Exception ;
    public void deleteAll(String entitysAsString, Long viewId, SessionUser user) throws Exception ;
    
}
